import {createApp} from "vue";
import "./styles/index.css";
// el+
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
// import '@/styles/element/index.scss'; // 引入自定义主题文件
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import App from "./App.vue";
import router from "./router"; // 引入路由配置
// 全局注册
import {Icon} from "@iconify/vue";

// 全局注册 Icon 组件

// createApp(App).mount('#app');
const app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component);
}
app.component("Icon", Icon);
app.use(router); // 使用路由
app.use(ElementPlus);
app.mount("#app");
